package com.newworld.basketballfire.service.delegate;

import com.newworld.basketballfire.service.exception.ServiceException;
import com.newworld.basketballfire.service.model.ListResult;
import com.newworld.basketballfire.service.model.User;

import java.util.List;

/**
 * Created by George on 2019/3/3.
 * UserServiceDelegate
 */
public interface UserServiceDelegate {
    User createUser(User user) throws ServiceException;

    User updateUser(String id, User user) throws ServiceException;

    User getUser(String id) throws ServiceException;

    ListResult<User> getUserList(String name, int pageNo, int pageSize) throws ServiceException;
}
